package com.ct.gd.passport.view;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;

import com.ct.gd.passport.R;
import com.ct.gd.passport.common.BaseActivity;
import com.umeng.analytics.MobclickAgent;

public class SplashActivity extends BaseActivity {

	@Override
	protected void onBaseCreate(Bundle savedInstanceState) {
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
	    setContentView(R.layout.splash);
	    MobclickAgent.onError(this);
	    new Handler().postDelayed(new Runnable(){ 
	    	public void run() {     
	    		navi2Main();
	    		finish();
	    	}     
	    }, 3000);
	}

	@Override
	protected void initViews() {
	}
	
	@Override
	protected void onResume() {
	    super.onResume();
	}

	protected void navi2Main() {
	    Intent intent = new Intent(this, MainActivity.class);
	    startActivity(intent);
	}
}
